import api from './index'
// import qs from 'qs'
// axios
import request from '@/utils/request'
// cardInfo api


//活动信息接口
export function activityInfo(params) {
  return request({
    url: api.activityInfo,
    method: 'get',
    params
  })
}

//活动白名单信息
export function activityVerify(params) {
  return request({
    url: api.activityVerify,
    method: 'get',
    params
  })
}

//活动购买商品(抽奖)
export function shopping(params) {
  return request({
    url: api.shopping,
    method: 'Post',
    params
  })
}

//中奖记录(抽奖)
export function activityRecor(params) {
  return request({
    url: api.activityRecor,
    method: 'get',
    params
  })
}

//消费节领券活动额外配置
export function additionalRule(params) {
  return request({
    url: api.additionalRule,
    method: 'get',
    params
  })
}

//转盘活动信息接口
export function activityInfo2(params) {
  return request({
    url: api.activityInfo2,
    method: 'get',
    params
  })
}

//转盘活动抽奖
export function draw(params) {
  return request({
    url: api.draw,
    method: 'Post',
    params
  })
}
//转盘活动下单
export function placeOrder(params) {
  return request({
    url: api.placeOrder,
    method: 'Post',
    params
  })
}

//支付
export function postPrepay(data) {
  return request({
    url: api.postPrepay,
    method: 'Post',
    data
  })
}

//卡券列表
export function winningRecord(params) {
  return request({
    url: api.winningRecord,
    method: 'get',
    params
  })
}

//九宫格活动信息接口
export function nineActivityInfo(params) {
  return request({
    url: api.nineActivityInfo,
    method: 'get',
    params
  })
}

//九宫格活动抽奖
export function nineDraw(params) {
  return request({
    url: api.nineDraw,
    method: 'Post',
    params
  })
}
//九宫格活动下单
export function ninePlaceOrder(params) {
  return request({
    url: api.ninePlaceOrder,
    method: 'Post',
    params
  })
}

//卡券详情
export function winningCardDetails(params) {
  return request({
    url: api.winningCardDetails,
    method: 'get',
    params
  })
}
//个人信息
export function getUserInfo(params) {
  return request({
    url: api.getUserInfo,
    method: 'get',
    params
  })
}
//发起拼团
export function initiateGroupBuy(data) {
  return request({
    url: api.initiateGroupBuy,
    method: 'Post',
    data
  })
}
//拼团详情
export function groupBuyDetail(params) {
  return request({
    url: api.groupBuyDetail,
    method: 'get',
    params
  })
}

//游戏活动信息
export function activityDetail(params) {
  return request({
    url: api.activityDetail,
    method: 'get',
    params
  })
}
